<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .sun{
            display: flex;
        }
        ul li {
            margin-left: 20px;
            list-style: none;
            cursor:pointer;
        }
        .sss li{
            display: none;
        }
        .qqq{
            color: red;
        }
        .qw{
            display: block !important;
        }
    </style>
</head>
<body>
    <ul class="sun">
        <li class="qqq">富强</li>
        <li>民主</li>
        <li>文明</li>
        <li>和谐</li>
    </ul>

    <ul class="sss">
        <li>富强 的内容</li>
        <li>民主 的内容</li>
        <li>文明 的内容</li>
        <li>和谐 的内容</li>
    </ul>
</body>
<script>

    function $(name){
        return document.querySelector(name);
    }
    function _(name){
        return document.querySelectorAll(name);
    }

   let dd=_(".sun li");
   let dd1=_(".sss li");
   dd.forEach(function(v,id){
    v.onclick=function(){
        dd1.forEach(function(s,i){
            s.className="";
            dd[i].className="";
        })
        dd1[id].className="qw";
        v.className='qqq';
    }
   })
</script>
</html>